package com.cx.healthex.client.wechat.service.Impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cx.base.apiModel.PageModel;
import com.cx.healthex.client.wechat.dao.act.StorageDAO;
import com.cx.healthex.client.wechat.dto.act.StorageDTO;
import com.cx.healthex.client.wechat.service.StorageService;

@Service
public class StorageServiceImpl implements StorageService{

	@Resource
	private StorageDAO storageDAO;
	
	/**
	 * 更新
	 * */
	public StorageDTO saveOrUpdateActStorage( Integer actId, String storageKey, String storageValue){
		return storageDAO.saveOrUpdateActStorage(actId, storageKey, storageValue);
	}
	
	
	/**
	 * 精确查询
	 * */
	public StorageDTO getActStorage(Integer actId, String storageKey){
		return storageDAO.getActStorage(actId, storageKey);
	}
	
	/**
	 * 查询活动所有
	 * */
	public PageModel getActStorages(Integer actId){
		return storageDAO.getActStorages(actId);
	}
}
